package com.lyy.system.service;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lyy.system.entity.LoginLog;

import javax.servlet.http.HttpServletRequest;

public interface LoginLogService extends IService<LoginLog> {

    /**
     * 添加登录日志
     * @param request
     */
    void add(HttpServletRequest request,String token);

    /**
     * 登入日志列表
     * @param page
     * @param wrapper
     * @return
     */
    IPage<LoginLog> findLoginlogList(Page<LoginLog> page, QueryWrapper<LoginLog> wrapper);

    /**
     * 删除登录日志
     * @param id
     */
    void deleteById(Long id);
}
